const express = require("express");
const ejs = require("ejs");
const path = require("path");

const app = express();
// 01.设置模版引擎
app.set("view engine", "ejs");
// 02.设置模版文件
app.set("views", path.resolve(__dirname, "./views"));

app.get("/", (req, res) => {
  res.render("home", { title: "你好" });
});


app.listen("3002", () => {
  console.log("3002 start");
});
